﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ordinaire.Commerce
{
    /// <summary>
    /// Defines list of purchasing related extension functions.
    /// </summary>
    public interface IPurchasing
    {
        /// <summary>
        /// Returns vendor id (personId or organisationId) of specified purchase id.
        /// </summary>
        /// <param name="purchaseId">purchase id</param>
        /// <param name="personId">person id as returned value, if set</param>
        /// <param name="organisationId">organisation id as returned value, if set</param>
        void GetVendorIdByPurchaseId(int purchaseId, out int? personId, out int? organisationId);
    }
}
